<template>
<!--  <van-swipe :autoplay="3000" lazy-render>-->
<!--    <van-swipe-item >-->
<!--      <img src="http://120.26.146.100:8889/monkey.png" style="width:200px"/>-->
<!--    </van-swipe-item>-->
<!--  </van-swipe>-->
  <div class="loginTitle">
<!--    <img src="http://120.26.146.100:8889/public/monkey.png" style="width: 50px;"/>-->
    <span>程序员交友平台</span>
    <p>程序员交友平台 是可寻找志同道合的 Web 平台</p>
  </div>

  <div class="success">
    注册成功
  </div>

  <div class="account">
    <span>您的新账户: {{account}}</span>
  </div>

  <div class="returnLogin">
    <van-button type="success" size="small" @click="returnLogin">记住啦</van-button>
  </div>

</template>


<script setup lang="ts">
import {useRoute, useRouter} from "vue-router";

const route = useRoute();
const account  = route.query?.account;//传入账户

const router = useRouter();


console.log("redirect",route.query?.redirect);

const returnLogin = ()=>{
  router.push('/');
}



</script>

<style scoped>

.loginTitle {
  text-align: center;
  margin-bottom: 20px;
}

.loginTitle img,
.loginTitle span {
  display: inline-block;
  vertical-align: middle;
}

.loginTitle span {
  margin-left: 4px;
  font-size: 25px;
  font-weight: bold;
}


.loginTitle p {
  margin-top: 10px;
  font-size: 12px;
  text-align: center;
  color: #4f5559;
}

.success{
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

.account{
  text-align: center;
  margin-bottom: 10px;
}

.returnLogin{
  text-align: center;
}


</style>